'''
Created on 2011-3-5

@author: roamer
'''
from google.appengine.ext import db

class rss_feed(db.Model):
    title        = db.StringProperty(required = True)
    url          = db.LinkProperty(required = True)
    description  = db.StringProperty()
    addTime      = db.DateTimeProperty(required = True)
    lastUpdate   = db.DateTimeProperty(required = True)
    
class rss_feed_item(db.Model):
    feedId       = db.ReferenceProperty(required = True)
    title        = db.StringProperty(required = True)
    pubDate      = db.DateTimeProperty(required = True)
    link         = db.LinkProperty(required = True)
    guid         = db.StringProperty()
    description  = db.TextProperty()
    content      = db.TextProperty()
    lastUpdate   = db.DateTimeProperty()
